package com.daidai;

import com.daidai.config.SpringConfig;
import com.daidai.dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App1 {
    public static void main(String[] args) {

        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);
        UserDao userDao = applicationContext.getBean(UserDao.class);
        boolean flag = userDao.isExist("root ");
        System.out.println(flag);
    }
}
